package com.xy.dto;

import com.xy.entity.DocxContentEntity;
import com.xy.form.DocxContentForm;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DocxContentDTO {
    private String docContent;
    private int type;

    public DocxContentDTO(DocxContentForm docxContentForm) {
        this.docContent = docxContentForm.getDocContent();
        this.type = docxContentForm.getType();
    }
    public DocxContentDTO(DocxContentEntity docContentEntity) {
        this.docContent = docContentEntity.getDocContent();
        this.type = docContentEntity.getType();
    }
}
